//
// Created by wze-zero on 2024/9/5 005.
//
#include <iostream>

using namespace std;

int main() {
    int num, p = 0, n = 0;
    for (int i = 0; i < 10; ++i) {
        cin >> num;
        num != 0 && num > 0 ? p++ : n++;
    }
    cout << "positive:" << p << endl;
    cout << "negative:" << n << endl;
    return 0;
}